From 3d9c2d285656561eee54d9f0d44ee03f98e2cc46 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 5 Dec 2008 15:24:12 +0000 Subject: [PATCH] x86: make an error message more precise ... allowing to distinguish whether the to be added or the already existing PIRQ binding is causing the failure. Signed-off-by: Jan Beulich --- xen/arch/x86/irq.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/irq.c b/xen/arch/x86/irq.c index e2c6453773..61c36e2874 100644 --- a/xen/arch/x86/irq.c +++ b/xen/arch/x86/irq.c @@ -623,9 +623,11 @@ int pirq_guest_bind(struct vcpu *v, int irq, int will_share) } else if ( !will_share || !action->shareable ) { - gdprintk(XENLOG_INFO, "Cannot bind IRQ %d to guest. " - "Will not share with others.\n", - irq); + gdprintk(XENLOG_INFO, "Cannot bind IRQ %d to guest. %s.\n", + irq, + will_share ? + "Others do not share" : + "Will not share with others"); rc = -EBUSY; goto unlock_out; } -- 2.30.2